package com.chenwenxuan.sync.ui.editor.desginer;

import javax.swing.JPanel;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import com.jgoodies.forms.factories.FormFactory;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Color;

public class _TaskCatalogPanel extends JPanel {

	private static final long serialVersionUID = -1284946002346399900L;
	private JTextField txtTaskCatalogId;
	private JTextField txtTaskCatalogName;

	public _TaskCatalogPanel() {
		super();
		setBackground(Color.WHITE);
		setLayout(new FormLayout(new ColumnSpec[] {
				FormFactory.RELATED_GAP_COLSPEC,
				FormFactory.DEFAULT_COLSPEC,
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("default:grow"),
				FormFactory.RELATED_GAP_COLSPEC,
				FormFactory.DEFAULT_COLSPEC,},
			new RowSpec[] {
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,}));
		
		JLabel label = new JLabel("\u7C7B\u522B\u7F16\u53F7\uFF1A");
		add(label, "2, 2, right, default");
		
		txtTaskCatalogId = new JTextField();
		add(txtTaskCatalogId, "4, 2, fill, default");
		txtTaskCatalogId.setColumns(10);
		
		JLabel label_1 = new JLabel("\u7C7B\u522B\u540D\u79F0\uFF1A");
		add(label_1, "2, 4, right, default");
		
		txtTaskCatalogName = new JTextField();
		add(txtTaskCatalogName, "4, 4, fill, default");
		txtTaskCatalogName.setColumns(10);

	}

	public JTextField getTxtTaskCatalogName() {
		return txtTaskCatalogName;
	}
	public JTextField getTxtTaskCatalogId() {
		return txtTaskCatalogId;
	}
}
